<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Fontre Conv Models</title>
  </head>
  <script type="text/javascript" src="app/operator.js"></script>
  <body>
    <div id="operator" class="form-group">
        <button onClick="do_objFile2Drc()">obj文件转drc</button>
        <button onClick="do_objDir2Drc()">obj目录转drc</button>
        <button onClick="do_objDir2Ftrm()">obj目录转ftrm</button>
        <button onClick="do_jsonFile2Ftrn()">json文件转ftrn</button>
        <button onClick="do_josnDir2Ftrn()">json目录转ftrn</button>
        <button onClick="do_ftrnFile2Json()">ftrn文件转json</button>
    </div>
    <div id="tools" class="form-group">
        <button onClick="do_selectTools()">选择工具</button>
        <h4 id="tools_text"></h4>
    </div>

    <script>
        initTools(function (txt) {
            document.getElementById("tools_text").innerHTML = txt;
        });

        function do_objFile2Drc() {
            objFile2Drc(function () {
                alert("完成");
            });
        }
        function do_objDir2Drc() {
            objDir2Drc(function () {
                alert("完成");
            });
        }
        function do_objDir2Ftrm() {
            objDir2Ftrm(function () {
                alert("完成");
            });
        }
        function do_jsonFile2Ftrn() {
            jsonFile2Ftrn(function () {
                alert("完成");
            });
        }
        function do_josnDir2Ftrn() {
            jsonDir2Ftrm(function () {
                alert("完成");
            });
        }
        function do_ftrnFile2Json() {
            ftrnFile2Json(function () {
                alert("完成");
            });
        }
        function do_selectTools() {
            selectTools(function (txt) {
                document.getElementById("tools_text").innerHTML = txt;
            });
        }
    </script>
  </body>
</html>